﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _010_011_012操作符详解_1_
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Person person1 = new Person();
            Person person2 = new Person();
            person1.Name = "lili";
            person2.Name = "chenzi";
            List<Person> nation =Person.GetMary(person1,person2);
            foreach (var p in nation)
            {
                Console.WriteLine(p.Name);
            }
        }
    }
    class Person
    {
        public string Name;

        public static List<Person> GetMary(Person p1, Person p2)
        {
         List<Person> people= new List<Person>();
         people.Add(p1);
         people.Add(p2);
            for(int i = 0; i < 11; i++)
            {
                Person child = new Person();
                child.Name = p1.Name + "&" + p2.Name + "s.child";
                people.Add(child);
            }
            return people;
        }
    }
}
